// src/router/index.js
import { createRouter, createWebHashHistory } from 'vue-router'

const routes = [
  {
    path: '/',
    name: 'Home',
    component: () => import('../view/home/index.vue')
  },
  {
    path: '/blog',
    name: 'Blog',
    component: () => import('../view/blog/blog.vue')
  },
  {
    path: '/video',
    name: 'Video',
    component: () => import('../view/home/index.vue')
  },
  {
    path: '/follow',
    name: 'Follow',
    component: () => import('../view/follow/index.vue')
  },
  {
    path: '/broadcast',
    name: 'Broadcast',
    component: () => import('../view/broadcast/index.vue')
  },
  {
    path: '/private',
    name: 'Private',
    component: () => import('../view/private/index.vue')
  }
]

const router = createRouter({
  history: createWebHashHistory(),
  routes
})

export default router
